# Contributor: Luca Weiss <luca@z3ntu.xyz>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=ayatana-indicator-notifications
pkgver=22.2.0
pkgrel=0
pkgdesc="Ayatana Indicator Notifications Service"
url="https://github.com/AyatanaIndicators/ayatana-indicator-notifications"
arch="all"
license="GPL-3.0-only"
makedepends="
	cmake
	cmake-extras
	glib-dev
	intltool
	"
subpackages="$pkgname-lang"
source="https://github.com/AyatanaIndicators/ayatana-indicator-notifications/archive/$pkgver/ayatana-indicator-notifications-$pkgver.tar.gz"
options="!check" # no tests

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		$CMAKE_CROSSOPTS .
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
40bc067bdebd21128af6a1f563060e28e326aac897a9a16b22aa5c09616770cfed7109c5a0b5fa3cdca50e5cdacdf1c0b48f3d904c0a303ec9a7081117043f69  ayatana-indicator-notifications-22.2.0.tar.gz
"
